package com.authine.cloudpivot.ext.enums.finance;

/**
 * 对账状态
 */
public enum ReconciliationStatusEnum {

    ALL("0", "全部"),
    UNDO("1", "未对账"),
    DOING("2", "对账中"),
    DONE("3", "已对账"),
    STOP("4", "已关闭");

    public String id;
    public String text;

    private ReconciliationStatusEnum(String id, String text) {

        this.id = id;
        this.text = text;
    }

    public static ReconciliationStatusEnum get(String code) {

        for (ReconciliationStatusEnum c : ReconciliationStatusEnum.values()) {
            if (c.id.equals(code)) {
                return c;
            }
        }
        return null;
    }
}
